all: main

main: *.c *.h
	gcc main.c -o main -Wall -ggdb

clean:
	rm -f main

test: main
	sh random_test.sh
	
deck: mazzo.c

mazzo.c: genera_mazzo.py mazzo.json
	python genera_mazzo.py > mazzo.c

# more fun
sandwich:
	@if [ `/usr/bin/id -u` -ne 0 ]; then echo "What? Make it yourself."; else echo "Okay."; fi

wargames:
	@echo "Would you like to play WarGame?"
	@read
	@sleep 1; echo "A strange game."; sleep 1; echo "The only winning move is"; sleep 1; echo "not to play."
